package ewms.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import ewms.bo.EwmsWasteDeclareQueryBo;
import ewms.domain.EwmsWasteDeclare;
import ewms.vo.EwmsWasteDeclareVo;
import ewms.common.core.mybatisplus.MybatisPlusRedisCache;
import ewms.common.core.page.BaseMapperPlus;
import org.apache.ibatis.annotations.CacheNamespace;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 危废申报Mapper接口
 *
 * @author zhaoxiaochun
 * @date 2022-01-12
 */
@CacheNamespace(implementation = MybatisPlusRedisCache.class, eviction = MybatisPlusRedisCache.class)
public interface EwmsWasteDeclareMapper extends BaseMapperPlus<EwmsWasteDeclare> {

	/**
	 * 查询危废申报列表
	 *
	 * @param page         分页信息
	 * @param wasteDeclareQuery
	 * @return
	 */
	Page<EwmsWasteDeclareVo> selectPageWasteDeclareList(@Param("page") Page<EwmsWasteDeclareVo> page, @Param("wasteDeclare") EwmsWasteDeclareQueryBo wasteDeclareQuery);

	/**
	 * 查询危废申报列表
	 *
	 * @param wasteDeclareQuery
	 * @return 申报列表
	 */
	public List<EwmsWasteDeclareVo> selectWasteDeclareList(EwmsWasteDeclareQueryBo wasteDeclareQuery);
}
